#include "my_thread_class.h"

My_Thread_Class :: My_Thread_Class () {}
My_Thread_Class :: ~My_Thread_Class () {}

bool My_Thread_Class :: start_thread () {
	return (pthread_create (& thread, NULL, internal_entry_point, this) == 0);
}

bool My_Thread_Class :: wait_for_thread () {
	return (pthread_join (thread, NULL) == 0); 
}

void * My_Thread_Class :: internal_entry_point (void * context) {
	((My_Thread_Class *) context) -> thread_method ();
	return NULL;
}

